/**
 * @author : zzr
 * @description :
 * @date :
 */
public class TestDemo4 {
    public static void main(String[] args) {
        int a = 10;
        NoParameterNoReturn noParameterNoReturn = () -> {
//            a = 99; //err
            System.out.println("捕获变量" + a);
        };
        noParameterNoReturn.test();
    }
}
